/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: SysLogRepository
 * Author:   pc
 * Date:     2019/9/9 15:47
 * Description: 日志JPA
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.example.rabbitmqdemo.Repository;

import com.example.rabbitmqdemo.entity.Commodity;
import com.example.rabbitmqdemo.entity.SysLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 〈功能：〉<br> 
 * 〈日志JPA〉
 * @author liuhaoran
 * @create 2019/9/9 15:47
 * @since 1.0.0
 */
public interface SysLogRepository  extends JpaRepository<SysLog,Long>, JpaSpecificationExecutor<SysLog> {
	@Transactional
	@Query(value = "select * from sys_log ", nativeQuery = true)
	List<SysLog> findAllSysLog();
}